package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.PartModel;
import com.xieyingwangluo.yxpart.mapper.PartMapper;
import com.xieyingwangluo.yxpart.service.PartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PartServiceImpl implements PartService {
    @Autowired
    private PartMapper partMapper;

    @Override
    public int add(PartModel partModel) {
        return partMapper.add(partModel);
    }

    @Override
    public int del(String noid) {
        return partMapper.del(noid);
    }

    @Override
    public int update(PartModel partModel) {
        return partMapper.update(partModel);
    }

    @Override
    public PartModel selO(String noid) {
        return partMapper.selO(noid);
    }

    @Override
    public List<PartModel> selA(PartModel partModel) {
        return partMapper.selA(partModel);
    }


    @Override
    public List<PartModel> selZ(int aaa) {
        return partMapper.selZ(aaa);
    }

    @Override
    public int getHirnumbByNoid(String part_id) {
        return partMapper.getHirnumbByNoid(part_id);
    }
}
